package com.lagou.service.impl;

import com.lagou.service.EchoSerivce;
import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class EchoServiceImpl implements EchoSerivce {

    @Override
    public void echo(String msg) {
        System.out.println(RpcContext.getContext().getAttachment("ip") + ": echo -> " + msg);
    }
}
